<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>修改密码</title>
    <link rel="shortcut icon" href="favicon.ico"> <link href="__PUBLIC__/Theme1/css/bootstrap.min.css?v=3.3.6" rel="stylesheet">
    <link href="__PUBLIC__/Theme1/css/font-awesome.min.css?v=4.4.0" rel="stylesheet">
    <link href="__PUBLIC__/Theme1/css/plugins/iCheck/custom.css" rel="stylesheet">
    <link href="__PUBLIC__/Theme1/css/animate.min.css" rel="stylesheet">
    <link href="__PUBLIC__/Theme1/css/style.min.css?v=4.1.0" rel="stylesheet">
    <link href="__PUBLIC__/Theme1/static/plupload/upfiless.css" rel="stylesheet" type="text/css" />
    <link href="__PUBLIC__/Theme1/lib/webuploader/0.1.5/webuploader.css" rel="stylesheet" type="text/css" />
    <link href="__PUBLIC__/Theme1/css/plugins/awesome-bootstrap-checkbox/awesome-bootstrap-checkbox.css" rel="stylesheet">

</head>

<body class="gray-bg">
    <div class="wrapper wrapper-content animated fadeInRight">
        <div class="row">
            <div class="col-sm-12">
                <div class="ibox float-e-margins">
                    <div class="ibox-title">
                        <h5>修改一级密码 </h5>
                        <div class="ibox-tools">
                            
                        </div>
                    </div>
                    <div class="ibox-content">
                        <form method="post" action="__URL__/updatepassAction" class="form-horizontal" id="form-admin-add" enctype="multipart/form-data">
                            <div class="form-group">
                                <label class="col-sm-1 control-label">会员编号</label>
                                <div class="col-sm-3">
								
									<input type="text" class="form-control" name="txt_loginname1" id="txt_loginname1" onBlur="fmCheckUserName('txt_loginname_msg',this.value,'恭喜,可以使用','对不起,该编号已经使用')" style="width:65%;" value="<{$bianhao}>" readonly />
									
                                </div>
                            </div>

                            <div class="form-group">
                                 <label class="col-sm-1 control-label">原始密码</label>
                                <div class="col-sm-3">
                                    <input type="text" name="txt_oldpwd" id="txt_oldpwd" class="form-control">
                                </div>

                            </div>
							

                            <div class="form-group">
                                <label class="col-sm-1 control-label">新密码</label>
                                <div class="col-sm-3">
                                    <input type="text" name="txt_pwd" id="txt_pwd" class="form-control" onBlur="shoujihaoma(this.value)" />
                                </div>

                            </div>
                            <div class="form-group">
                                <label class="col-sm-1 control-label">确认新密码</label>
                                <div class="col-sm-3">
                                    <input type="text" name="txt_newpwd" id="txt_newpwd" class="form-control" onBlur="is_tuijian(this.value)">
                                </div>

                            </div>
							
							
                            <div class="hr-line-dashed"></div>
                            <div class="form-group">
                                <div class="col-sm-4 col-sm-offset-2">
									<input type="hidden" value="up1" name="act" />
                                    <button class="btn btn-primary" type="submit">确认修改</button>
                                </div>
                            </div>
                        </form>
                    </div>
                </div>
            </div>
        </div>
        <div class="row">
            <div class="col-sm-12">
                <div class="ibox float-e-margins">
                    <div class="ibox-title">
                        <h5>修改二级密码 </h5>
                        <div class="ibox-tools">
                            
                        </div>
                    </div>
                    <div class="ibox-content">
                        <form method="post" action="__URL__/updatepassAction" class="form-horizontal" id="form-admin-add2" enctype="multipart/form-data">
                            <div class="form-group">
                                <label class="col-sm-1 control-label">会员编号</label>
                                <div class="col-sm-3">
								
									<input type="text" class="form-control" name="txt_loginname1" id="txt_loginname1"  style="width:65%;" value="<{$bianhao}>" readonly />
									
                                </div>
                            </div>

                            <div class="form-group">
                                 <label class="col-sm-1 control-label">原始密码</label>
                                <div class="col-sm-3">
                                    <input type="text" name="txt_oldpwd" id="txt_oldpwd" class="form-control">
                                </div>

                            </div>
							

                            <div class="form-group">
                                <label class="col-sm-1 control-label">新密码</label>
                                <div class="col-sm-3">
                                    <input type="text" name="txt_pwd" id="txt_pwd2" class="form-control" onBlur="shoujihaoma(this.value)" />
                                </div>

                            </div>
                            <div class="form-group">
                                <label class="col-sm-1 control-label">确认新密码</label>
                                <div class="col-sm-3">
                                    <input type="text" name="txt_newpwd" id="txt_newpwd2" class="form-control" onBlur="is_tuijian(this.value)">
                                </div>

                            </div>
							
							
                            <div class="hr-line-dashed"></div>
                            <div class="form-group">
                                <div class="col-sm-4 col-sm-offset-2">
									<input type="hidden" value="up2" name="act" />
                                    <button class="btn btn-primary" type="submit">确认修改</button>
                                </div>
                            </div>
                        </form>
                    </div>
                </div>
            </div>
        </div>
    </div>

    <script src="__PUBLIC__/Theme1/js/jquery.min.js?v=2.1.4"></script>
    <script src="__PUBLIC__/Theme1/js/bootstrap.min.js?v=3.3.6"></script>
    <script src="__PUBLIC__/Theme1/js/content.min.js?v=1.0.0"></script>
    <script src="__PUBLIC__/Theme1/js/plugins/iCheck/icheck.min.js"></script>

<script type="text/javascript" src="__PUBLIC__/Theme1/check/js/jquery.validate.min.js"></script> 

<script type="text/javascript" src="__PUBLIC__/Theme1/check/js/messages_zh.min.js"></script> 

<script type="text/javascript" src="__PUBLIC__/Theme1/check/js/validate-methods.js"></script> 
<script type="text/javascript" src="__PUBLIC__/Theme1/lib/webuploader/0.1.5/webuploader.min.js"></script> 

    <script>
        $(document).ready(function(){$(".i-checks").iCheck({checkboxClass:"icheckbox_square-green",radioClass:"iradio_square-green",})});
    </script>
    
    <script type="text/javascript">
	
	
	$(function(){
	
	$("#form-admin-add").validate({
		rules:{
            txt_oldpwd:{
                required:true,
                minlength:6,
                maxlength:20
            },
            txt_pwd:{
                required:true,
                minlength:6,
                maxlength:20
            },
			
            txt_newpwd:{
                required:true,
                minlength:6,
                maxlength:20,
				equalTo:'#txt_pwd'
            }
			
			
        },
		messages:
		{
		   txt_newpwd: {
			required: "请输入确认密码",
			minlength: "确认密码不能小于6个字符",
			equalTo: "两次输入密码不一致不一致"
		   }
		},
  
		onkeyup:false,
		focusCleanup:true,
		success:"valid",
		submitHandler:function(form){
		
				$(form).ajaxSubmit();
				var index = parent.layer.getFrameIndex(window.name);
				parent.$('.btn-refresh').click();
				parent.layer.close(index);
			
			
			
			
		}
	});
	
	
	$("#form-admin-add2").validate({
		rules:{
            txt_oldpwd:{
                required:true,
                minlength:6,
                maxlength:20
            },
            txt_pwd2:{
                required:true,
                minlength:6,
                maxlength:20
            },
			
            txt_newpwd2:{
                required:true,
                minlength:6,
                maxlength:20,
				equalTo:'#txt_pwd2'
            }
			
			
        },
		messages:
		{
		   txt_newpwd2: {
			required: "请输入确认密码",
			minlength: "确认密码不能小于6个字符",
			equalTo: "两次输入密码不一致不一致"
		   }
		},
  
		onkeyup:false,
		focusCleanup:true,
		success:"valid",
		submitHandler:function(form){
		
				$(form).ajaxSubmit();
				var index = parent.layer.getFrameIndex(window.name);
				parent.$('.btn-refresh').click();
				parent.layer.close(index);
			
			
			
			
		}
	});
});
</script> 

</body>

</html>
